// 产品列表模型
class NewsItemModel {
  String author;
  String title;
  String content;
  NewsItemModel({this.author, this.title, this.content});
  factory NewsItemModel.fromJson(dynamic json) {
    return NewsItemModel(
        author: json['author'], title: json['title'], content: json['content']);
  }
}

// 产品列表数据转换
class NewsListModel {
  List<NewsItemModel> data;
  NewsListModel(this.data);
  factory NewsListModel.fromJson(List json) {
    return NewsListModel(json.map((i) => NewsItemModel.fromJson((i))).toList());
  }
}
